package com.syq.config;

import com.syq.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: UserConfig
 * @Description: TODO
 * @Create by: syq
 * @Date: 2022/8/11 9:59
 */

@Configuration
public class UserConfig {

    @Bean(name = "user")
    public User user(){
        User user=new User();
        user.setId(2);
        user.setName("syq");
        return user;
    }
}
